﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.Master" AutoEventWireup="true" CodeFile="ReservasRealizadas.aspx.cs" Inherits="Reservas_ReservasRealizadas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <p>
        Reservas Realizadas</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
            SelectCommand="SELECT [Nro_Reserva], [Fecha_Reserva], [Id_Cliente], [Cantidad_Comensales] FROM [Reserva]">
        </asp:SqlDataSource>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="Nro_Reserva" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" Width="917px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="Nro_Reserva" HeaderText="Nro_Reserva" 
                    InsertVisible="False" ReadOnly="True" SortExpression="Nro_Reserva" />
                <asp:BoundField DataField="Fecha_Reserva" HeaderText="Fecha_Reserva" 
                    SortExpression="Fecha_Reserva" />
                <asp:BoundField DataField="Id_Cliente" HeaderText="Id_Cliente" 
                    SortExpression="Id_Cliente" />
                <asp:BoundField DataField="Cantidad_Comensales" 
                    HeaderText="Cantidad_Comensales" SortExpression="Cantidad_Comensales" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Abrir" />
        <asp:Button ID="Button2" runat="server" onclick="Button1_Click" Text="Cancelar Reserva" />
    </p>

</asp:Content>

